package berlinatyourfingertips.ua;

import com.briansteen.utils.GeoPosition;

/**
 * UAResult is a container class, that holds all possible data a api
 * request can return. It ensures that all members to hold a value.
 * 
 * @author Denny Koch
 *
 */
public final class UAResult {

	private GeoPosition gp = new GeoPosition(0, 0);
	private String message = "";
	private String imagePath = "";

	private int id = 0;
	
	public UAResult(String message) {
		this.message	=	message;
	}
	
	public UAResult(float latitude, float longitude) {
		this.gp.latitude 	= 	latitude;
		this.gp.longitude 	= 	longitude;
	}	
	
	public UAResult(float latitude, float longitude, String message) {
		this(latitude, longitude);
		this.message		=	message;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public int getId() { return id; }
	
	public void setImagePath(String imagePath) { this.imagePath	= imagePath; }
	
	public String getImagePath() { return imagePath; }
	
	public String getMessage() { return message; }
	
	public GeoPosition getGeoPosition() { return gp; }
	
	public float getLatitude() { return gp.latitude; }
	
	public float getLongitude() { return gp.longitude; }
}
